<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Validate PSKC against XML Schema: PSKC Library (libpskc) Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="PSKC Library (libpskc) Manual">
<link rel="up" href="pskc-tutorial-pskctool.html" title="Command line pskctool">
<link rel="prev" href="pskc-tutorial-pskctool.html" title="Command line pskctool">
<link rel="next" href="pskc-tutorial-pskctool-sign.html" title="Digitally sign PSKC data">
<meta name="generator" content="GTK-Doc V1.28 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts"></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="pskc-tutorial-pskctool.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="pskc-tutorial-pskctool.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="pskc-tutorial-pskctool-sign.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="pskc-tutorial-pskctool-validate"></a>Validate PSKC against XML Schema</h2></div></div></div>
<p>
	  The --validate (-e) parameter can be used to validate PSKC
	  data according to the XML Schema specified in RFC 6030.
	  This performs a deep analysis and syntax check of the data
	  and will print either "OK" or "FAIL" depending on validation
	  outcome.
	</p>
<div class="informalexample">
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td class="listing_lines" align="right"><pre>1
2
3</pre></td>
        <td class="listing_code"><pre class="programlisting">$ pskctool <span class="gtkdoc opt">-</span>e pskc<span class="gtkdoc opt">-</span>ocra<span class="gtkdoc opt">.</span>xml
OK
$</pre></td>
      </tr>
    </tbody>
  </table>
</div>

<p>
	  Note that the exit code from pskctool --validate is 0
	  (indicating success) even when FAIL is printed.  Use --quiet
	  to suppress output and let the exit code correspond to
	  validation result.
	</p>
<p>
	  Note: If this command always results in errors, the XML
	  catalog on your system needs to be updated to point to the
	  installed PSKC schema files.
	</p>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.28</div>
</body>
</html>